Returns the ReadOnlyCollection<SequencingRuleNodeReader> containing the <imsss:postConditionRules> nodes, of type SequencingRuleNodeReader.
Parent Type: SequencingNodeReader
Namespace: Microsoft.LearningComponents.Manifest
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public ReadOnlyCollection<SequencingRuleNodeReader> PostConditionRules { get; } |
| Exception type | Condition |
| InvalidPackageException | In |
The ReadOnlyCollection returned from this method is not populated until properties or methods on it are accessed. This means that in ManifestReaderSettings.FixScormRequirementViolations=false, InvalidPackageException may be thrown if there are invalid nodes in the list (e.g. nodes containing illegal attribute values.)
In ManifestReaderSettings.FixScormRequirementViolations=true, warnings are added to the log and invalid nodes are ignored.
If there are no nodes of the specified type, an empty ReadOnlyCollection is returned.
Note that if this sequencing node has a valid IDRef attribute, if there is no <imsss:sequencingRules> node in this sequencing node, the values inside the <imsss:sequencingRules> node in the sequencing node referenced by IDRef is returned.
Loop through the postConditionRules for all sequencing nodes in the sequencingCollection.
| C# |
foreach(SequencingNodeReader sequencing in manifest.SequencingCollection.Values)
{
foreach (SequencingRuleNodeReader rule in sequencing.PostConditionRules)
{
// Use the SequencingRuleNodeReader
}
}
|